<?php
/**
 * Created by PhpStorm.
 * User: 10901
 * Date: 2019/1/30
 * Time: 16:07
 */

class AdminModel extends Model
{
    public function check($name,$password){
        $password=md5($password);
        $sql="select * from `p34_admin` where admin_name='$name' and admin_pass='$password'";
        $row=$this->_dao->getRow($sql);
        return true;
        return (bool) $row;
    }
}